// miniprogram/devTools/chbqb/detail/detail.js
Page({

  data: {
    bqbData: {}
  },
  onLoad: function (options) {
    if (options.bqbData != null) {
      let bqbData = JSON.parse(decodeURI(options.bqbData))
      this.setData({
        bqbData
      })
      wx.setNavigationBarTitle({
        title: bqbData.bqb_name,
      })
    }
  },
  onShareAppMessage: function () {

  },
  onMenuClick(event){
    console.log(event)
    let bqbUrl=event.currentTarget.dataset.menu
    let bqbUrls=this.data.bqbData.images
    wx.previewImage({
      current: bqbUrl, // 当前显示图片的http链接
      urls: bqbUrls // 需要预览的图片http链接列表
    })
  }
})